﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Main.master" AutoEventWireup="true"
    CodeBehind="SchoolManager.aspx.cs" Inherits="TrainingsApp.IPADApp.Master.SchoolManager" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1" Namespace="DevExpress.Web.ASPxGridView"
    TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .searchTab
        {
            margin-bottom: 10px;
            background-color: #fff;
            border: 2px solid #ccc;
        }
        .searchTab .lab, .searchTab .input
        {
            padding: 8px;
        }
        .searchTab .lab
        {
            padding-left: 20px;
            font-weight: 600;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" class="searchTab" width="100%">
        <tr>
            <td class="lab">
                学校编号 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtCode" runat="server" Width="200" MaxLength="50">
                </dx:ASPxTextBox>
            </td>
            <td class="lab">
                学校名称 :
            </td>
            <td class="input">
                <dx:ASPxTextBox ID="txtSchoolName" runat="server" Width="200" MaxLength="100">
                </dx:ASPxTextBox>
            </td>
            <td class="lab" rowspan="2" valign="middle" align="center">
                <dx:ASPxButton ID="btnSearch" runat="server" Width="120" Height="35" Text="筛选" 
                    onclick="btnSearch_Click">
                </dx:ASPxButton>
            </td>
        </tr>
        <tr>
            <td class="lab">
                地址 :
            </td>
            <td class="input" colspan="3">
                <dx:ASPxTextBox ID="txtAddress" runat="server" Width="600" MaxLength="400">
                </dx:ASPxTextBox>
            </td>
        </tr>
    </table>
    <dx:ASPxGridView ID="aspDataSource" Width="100%" runat="server" AutoGenerateColumns="False"
        KeyFieldName="Idx" EnableCallBacks="false" OnPageIndexChanged="aspDataSource_PageIndexChanged"
        OnCustomButtonCallback="aspDataSource_CustomButtonCallback">
        <Columns>
            <dx:GridViewDataTextColumn VisibleIndex="0" FieldName="SchoolCode" Caption="学校编号">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="2" FieldName="SchoolName" Caption="学校名称">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="3" FieldName="ProvinceName" Caption="所在省">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="4" FieldName="AreaName" Caption="所在市">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="5" FieldName="RegionName" Caption="所在区/县">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="6" FieldName="Address" Caption="地址">
            </dx:GridViewDataTextColumn>
            <dx:GridViewCommandColumn VisibleIndex="7" Width="230" Caption="操作">
                <CustomButtons>
                    <dx:GridViewCommandColumnCustomButton ID="btnEdit" Text="编辑">
                    </dx:GridViewCommandColumnCustomButton>
                    <dx:GridViewCommandColumnCustomButton ID="btnNew" Text="新增">
                    </dx:GridViewCommandColumnCustomButton>
                    <dx:GridViewCommandColumnCustomButton ID="btnManagerClass" Text="管理班级">
                    </dx:GridViewCommandColumnCustomButton>
                    <dx:GridViewCommandColumnCustomButton ID="btnManagerTeacher" Text="管理教师">
                    </dx:GridViewCommandColumnCustomButton>
                    <dx:GridViewCommandColumnCustomButton ID="btnManagerChildren" Text="管理学生">
                    </dx:GridViewCommandColumnCustomButton>
                </CustomButtons>
            </dx:GridViewCommandColumn>
        </Columns>
        <Settings ShowGroupPanel="false" ShowFilterBar="Hidden" ShowFilterRow="false" />
        <SettingsBehavior AllowSort="false" ConfirmDelete="true" />
        <SettingsText ConfirmDelete="是否删除所选记录?" />
        <SettingsPager PageSize="20">
        </SettingsPager>
        <Settings ShowFilterRow="False" />
    </dx:ASPxGridView>
</asp:Content>
